Skip to content

Cover idlecallbacks with Stable API guards (#58139) - #58139

Closed
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D117333873
Closed

Cover idlecallbacks with Stable API guards (#58139)#58139
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D117333873

Conversation

@j-piasecki

@j-piasecki j-piasecki commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary:

Classifies react/nativemodule/idlecallbacks:idlecallbacks as a private target under the C++ stable API three-tier visibility model. Adds #include <react/cxxstableapi/PrivateGuard.h> to the module's single exported header (NativeIdleCallbacks.h), and wires the guard dependency into BUCK, CMake, and the podspec.

The podspec needs no USE_FRAMEWORKS header search path edit: its existing $(PODS_TARGET_SRCROOT)/../../.. already resolves to ReactCommon, so <react/cxxstableapi/...> is on the path.

The guards are inert unless a consumer defines RN_STRICT_API, so there is no behavior change.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D117333873

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 25, 2026
@meta-codesync

meta-codesync Bot commented Aug 25, 2026

Copy link
Copy Markdown

@j-piasecki has exported this pull request. If you are a Meta employee, you can view the originating Diff in D117333873.

@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner labels Aug 25, 2026
@facebook-github-tools facebook-github-tools Bot added the p: Facebook Partner: Facebook label Aug 25, 2026
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Aug 28, 2026
Summary:

Classifies `react/nativemodule/idlecallbacks:idlecallbacks` as a private target under the C++ stable API three-tier visibility model. Adds `#include <react/cxxstableapi/PrivateGuard.h>` to the module's single exported header (`NativeIdleCallbacks.h`), and wires the guard dependency into BUCK, CMake, and the podspec.

The podspec needs no `USE_FRAMEWORKS` header search path edit: its existing `$(PODS_TARGET_SRCROOT)/../../..` already resolves to `ReactCommon`, so `<react/cxxstableapi/...>` is on the path.

The guards are inert unless a consumer defines `RN_STRICT_API`, so there is no behavior change.

Changelog: [Internal]

Differential Revision: D117333873
@meta-codesync meta-codesync Bot changed the title Cover idlecallbacks with Stable API guards Cover idlecallbacks with Stable API guards (#58139) Aug 28, 2026

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Sep 2, 2026
Summary:

Classifies `react/nativemodule/idlecallbacks:idlecallbacks` as a private target under the C++ stable API three-tier visibility model. Adds `#include <react/cxxstableapi/PrivateGuard.h>` to the module's single exported header (`NativeIdleCallbacks.h`), and wires the guard dependency into BUCK, CMake, and the podspec.

The podspec needs no `USE_FRAMEWORKS` header search path edit: its existing `$(PODS_TARGET_SRCROOT)/../../..` already resolves to `ReactCommon`, so `<react/cxxstableapi/...>` is on the path.

The guards are inert unless a consumer defines `RN_STRICT_API`, so there is no behavior change.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D117333873
Summary:

Classifies `react/nativemodule/idlecallbacks:idlecallbacks` as a private target under the C++ stable API three-tier visibility model. Adds `#include <react/cxxstableapi/PrivateGuard.h>` to the module's single exported header (`NativeIdleCallbacks.h`), and wires the guard dependency into BUCK, CMake, and the podspec.

The podspec needs no `USE_FRAMEWORKS` header search path edit: its existing `$(PODS_TARGET_SRCROOT)/../../..` already resolves to `ReactCommon`, so `<react/cxxstableapi/...>` is on the path.

The guards are inert unless a consumer defines `RN_STRICT_API`, so there is no behavior change.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D117333873
@meta-codesync meta-codesync Bot closed this in c148be6 Sep 2, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Sep 2, 2026
@meta-codesync

meta-codesync Bot commented Sep 2, 2026

Copy link
Copy Markdown

This pull request has been merged in c148be6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants